class Types<T> extends Object {
  var _memory = <T>[];

  int count() {
    return this._memory.length;
  }

  T operator [](int index) {
    return this._memory[index];
  }

  void push(T value) {
    this._memory.add(value);
  }
}

typedef IntTypes = Types<int>;
